package bargain.server.dao;

import bargain.enitity.FreezeAssets;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;

/**
 * @ClassName FreezeAssetsDao
 * @Description
 * @Author Jingxiao.Ye
 * @Date 2022/1/4 下午10:11
 * @Version V1.0
 * @Since JDK 11
 */
public interface FreezeAssetsDao {

    @Insert("INSERT INTO `study`.`t_freeze_assets`(`id`, `rmb`, `dollar`, `create_time`, `account_id`) VALUES (#{id}, #{rmb}, #{dollar}, #{createTime}, #{accountId});")
    int save(FreezeAssets freezeAssets);

    @Delete("delete from `study`.`t_freeze_assets` where id = #{id}")
    int del(long id);
}
